//
//  ESPConfigHeaderView.m
//  LazyHome
//
//  Created by yh on 2018/3/27.
//  Copyright © 2018年 yh. All rights reserved.
//

#import "ESPConfigHeaderView.h"

@implementation ESPConfigHeaderView

- (void)setIsConfig:(BOOL)isConfig{
    _isConfig = isConfig;
    self.configBtn.layer.cornerRadius = self.configBtn.frame.size.width / 2;
    [self.configBtn setTitle:isConfig ? @"取消" : @"配置" forState:UIControlStateNormal];
    [self.configBtn setTitleColor:isConfig ? [UIColor redColor] : [UIColor blueColor]  forState:UIControlStateNormal];
    self.configBtn.layer.borderColor = (isConfig ? [UIColor redColor] : [UIColor blueColor]).CGColor;
    self.configBtn.layer.borderWidth = 2;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
